@extends('admin/layout/index')
@section('head')
<!-- Plugin Stylesheets first to ease overrides -->
<link rel="stylesheet" type="text/css" href="/admin/plugins/colorpicker/colorpicker.css" media="screen">
<link rel="stylesheet" type="text/css" href="/admin/plugins/prettyphoto/css/prettyPhoto.css" media="screen">

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="/admin/bootstrap/css/bootstrap.min.css" media="screen">
<link rel="stylesheet" type="text/css" href="/admin/css/fonts/ptsans/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="/admin/css/fonts/icomoon/style.css" media="screen">

<link rel="stylesheet" type="text/css" href="/admin/css/mws-style.css" media="screen">
<link rel="stylesheet" type="text/css" href="/admin/css/icons/icol16.css" media="screen">
<link rel="stylesheet" type="text/css" href="/admin/css/icons/icol32.css" media="screen">

<!-- Demo Stylesheet -->
<link rel="stylesheet" type="text/css" href="/admin/css/demo.css" media="screen">

<!-- jQuery-UI Stylesheet -->
<link rel="stylesheet" type="text/css" href="/admin/jui/css/jquery.ui.all.css" media="screen">
<link rel="stylesheet" type="text/css" href="/admin/jui/jquery-ui.custom.css" media="screen">

<!-- Theme Stylesheet -->
<link rel="stylesheet" type="text/css" href="/admin/css/mws-theme.css" media="screen">
<link rel="stylesheet" type="text/css" href="/admin/css/themer.css" media="screen">
@endsection
@section('content')
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span><i class="icon-pictures"></i>现有商品图片</span>
    </div>
    <div class="mws-panel-body">
        <ul class="thumbnails mws-gallery">
            @foreach($data as $k => $v)
            <li>
                <span class="thumbnail"><img src="{{ $v['path'] }}" alt=""></span>
                <span class="mws-gallery-overlay">
                    <a href="{{ $v['path'] }}" rel="prettyPhoto[gallery1]" class="mws-gallery-btn"><i class="icon-search"></i></a>
                    <a href="/admin/goods/deleteimage/{{ $v['id'] }}?ve_id={{ $ve_id }}" class="mws-gallery-btn"><i class="icon-trash"></i></a>
                </span>
            </li>
            @endforeach
        </ul>
    </div>
</div>
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>编辑商品图片</span>
    </div>
    <div class="mws-panel-body no-padding">
        <form class="mws-form" action="/admin/goods/imageinsert/{{ $ve_id }}" enctype='multipart/form-data' method='post'>
            {{ csrf_field() }}
                <div class="mws-form-row">
                    <label class="mws-form-label">上传更多商品图片</label>
                    <div class="mws-form-item">
                        <input type="file" name='pic'>
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">图片显示位置</label>
                    <div class="mws-form-item">
                        <select name="way" id="">
                            <option value="1">封面</option>
                            <option value="0">普通</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="mws-button-row">
                <input value="提交" class="btn btn-danger" type="submit">
                <input value="重置" class="btn " type="reset">
            </div>
        </form>
    </div>      
</div>
@endsection
@section('link')
 <!-- JavaScript Plugins -->
    <script src="/admin/js/libs/jquery-1.8.3.min.js"></script>
    <script src="/admin/js/libs/jquery.mousewheel.min.js"></script>
    <script src="/admin/js/libs/jquery.placeholder.min.js"></script>
    <script src="/admin/custom-plugins/fileinput.js"></script>
    
    <!-- jQuery-UI Dependent Scripts -->
    <script src="/admin/jui/js/jquery-ui-1.9.2.min.js"></script>
    <script src="/admin/jui/jquery-ui.custom.min.js"></script>
    <script src="/admin/jui/js/jquery.ui.touch-punch.js"></script>

    <!-- Plugin Scripts -->
    <script src="/admin/plugins/prettyphoto/js/jquery.prettyPhoto.min.js"></script>
    <script src="/admin/plugins/colorpicker/colorpicker-min.js"></script>

    <!-- Core Script -->
    <script src="/admin/bootstrap/js/bootstrap.min.js"></script>
    <script src="/admin/js/core/mws.js"></script>

    <!-- Themer Script (Remove if not needed) -->
    <script src="/admin/js/core/themer.js"></script>

    <!-- Demo Scripts (remove if not needed) -->
    <script src="/admin/js/demo/demo.gallery.js"></script>
@endsection